package com.neuedu.elmserver.controller;


import com.neuedu.elmserver.service.BusinesstypeService;
import com.neuedu.elmserver.vo.ResultVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wyh
 * @since 2024-11-07
 */
@RestController
@RequestMapping("/businesstype")
@CrossOrigin
public class BusinesstypeController {

    @Autowired
    private BusinesstypeService businesstypeService;

    @GetMapping("/listBusinessType")
    public ResultVO listBusinessType(){
        return businesstypeService.queryAllBusinessType();
    }

}
